package fr.emn.fil.soc.gr3.restws;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import fr.emn.fil.soc.gr3.entites.Sujet;

@Path("/enseignant")
public interface ProtocoleEnseignant {
	
	@POST
	@Path("/session/{token}/sujetXml")
	@Consumes(MediaType.APPLICATION_XML)
	public boolean deposerSujet(@PathParam("token") String token,@QueryParam("sujet")String sujetXml);
	
	@DELETE
	@Path("/session/{token}/sujet/{idSujet}")
	@Produces(MediaType.APPLICATION_XML)
	public boolean retirerSujet(@PathParam("token") String token,@PathParam("idSujet") String idSujet);
	

}
